﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.SpuGoods.Model
{
    public class TopGetArg
    {
        /// <summary>
        /// Top数
        /// </summary>
        [NumValidate("public.top.num.error", 1, 50)]
        public int Top { get; set; }

        /// <summary>
        /// 排序名
        /// </summary>
        [NullValidate("public.sort.name.null")]
        [LenValidate("public.sort.name.len",1,20)]
        public string SortName { get; set; }

        [NumValidate("shop.category.id.error", 1)]
        public long? CategoryId { get; set; }

        [NumValidate("shop.category.lvl.error", 0)]
        public int? Lvl { get; set; }

        public bool IsDesc { get; set; }
    }
}
